<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>员工详情页</title>
</head>
<body>
	${emp }
	<form action="EmpServlet?method=updateEmp" method="post">
		编号：<input type="text" name="id" value="${emp.id }" readonly /><br>
		姓名：<input type="text" name="name" value="${emp.name }" /><br> 性别：<input
			type="radio" name="sex" value="男" ${emp.sex=='男'?'checked':'' } />男 <input
			type="radio" name="sex" value="女" ${emp.sex=='女'?'checked':'' } />女
		<br> 工资：<input type="number" name="sal" value="${emp.sal }" /><br>
		<input type="submit" value="修改" />
	</form>
	<script type="text/javascript">
		if ('${res}') {
			alert('${res}')
		}
	</script>
</body>
</html>